<cfparam name="pageTheme" default="f">
<cfparam name="headerTheme" default="f">
<cfparam name="contentTheme" default="f">
<cfparam name="footerTheme" default="f">
<cfparam name="listviewTheme" default="b">
<cfparam name="readOnlyListviewTheme" default="d ">
<cfparam name="buttonTheme" default="e">
<cfparam name="backButtonTheme" default="c">
<cfparam name="selectTheme" default="e">
<cfparam name="collapsibleSetTheme" default="b">
<cfparam name="collapsibleTheme" default="b">
<cfparam name="collapsibleContentTheme" default="d">

<cfparam name="regionID" type="integer" default="0">

<cfscript>
	storedProcedureGateway = new assets.calgrants.com.gateway.StoredProcedureGateway();
	cities = storedProcedureGateway.call("getWorkshopCities");
	counties = storedProcedureGateway.call("getWorkshopCounties");
</cfscript>

<!--- CCFC Workshops Admin color sets

0080c0 - Dark Aqua (onstate for main nav, main nav button border color)
169cd2 - Light Aqua (link color)
d4e6f3 - Very Light Aqua (table header background color)

0e2a8b - Dark Blue (logo main color)
0f2c8c - Dark Blue (normal state for main nav)

b27a3a - Medium Gold (star in logo)
--->

<!DOCTYPE html> 
<html xmlns:fb="http://ogp.me/ns/fb#">
<!---<html>--->
<head> 
	<title>California Cash for College</title>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<cfoutput>
		<script src="#request.pathToJQuery#" type="text/javascript"></script>
		<script src="#request.pathToJQueryMobile#" type="text/javascript"></script>
		<cfif request.mode eq "prod">
			<script src="#request.facebookConnectCDNUrl#" id="facebook-jssdk" async="true" type="text/javascript"></script>
		</cfif>
		<script src="#request.pathToUI#/common.js" type="text/javascript"></script>
		<script src="#request.pathToUI#/mobile.js" type="text/javascript"></script>
		<link href="#request.pathToJQueryMobileCSS#" rel="stylesheet" />
		<link href="#request.pathToUI#/common.css" rel="stylesheet" />
		
		<link href="#request.pathToUI#/mobile.css" rel="stylesheet" />
	</cfoutput>
</head> 
<body>

<div id="fb-root"></div>
<script>
	
	<cfoutput>
		var regionId = #regionID#;
	</cfoutput>
	
	var logMobileFacebookLike = function(r){
		$.ajax({            
        	type: "POST",            
        	url: "/assets/calgrants/com/API.cfc?method=logMobileFacebookLike",
			data: {"URL": r},
        	//dataType: "json",            
        	success: function(data, textStatus, jqXHR) {
				//console.log("API method logFacebookLike returned the following:");
				alert(data);
				//studentFacebookID = data;
        	},            
        	error: function(jqXHR, textStatus, errorThrown){            
        		if (console && console.log) {            
        			console.log(errorThrown);            
        		}            
        	}         
        });
	}
		
	window.fbAsyncInit = function() {
		FB.init({
			appId      : '283515198366622',
			status     : true, 
			cookie     : true,
			xfbml      : true,
			oauth      : true,
		});
		
		FB.getLoginStatus(function(response){
			//statusRequestHandler(response);
			//console.log(response);
		});
		
		FB.Event.subscribe('edge.create',
			function(response) {
				//console.log(response);
				logMobileFacebookLike(response);
			}
		);
		
		FB.Event.subscribe('auth.login',
			function(response) {
				//console.log(response);
			}
		);
	};
	/*(function(d){
		var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
		js = d.createElement('script'); js.id = id; js.async = true;
		js.src = "//connect.facebook.net/en_US/all.js";
		d.getElementsByTagName('head')[0].appendChild(js);
	}(document));*/
</script>

<!--- Home --->
<cfinclude template="views/home.cfm">

<!--- Why Apply --->
<cfinclude template="views/whyApply.cfm">

<!--- Find a Workshop --->
<cfinclude template="views/findAWorkshop.cfm">

<!--- Search by Zip Code --->
<!--- <cfinclude template="views/searchByZipCode.cfm"> --->
	
<!--- Search by City --->
<!--- <cfinclude template="views/searchByCity.cfm"> --->
	
<!--- Search by County --->
<!--- <cfinclude template="views/searchByCounty.cfm"> --->

<!--- What to Bring --->
<cfinclude template="views/whatToBring.cfm">

<!--- To Do List --->
<!--- <cfinclude template="views/toDoList.cfm" --->
	
<!--- Search Results --->
<cfinclude template="views/searchResults.cfm">

<!--- Cash for College Scholarship
<cfinclude template="views/cashForCollege.cfm"> --->

<!--- Why I Apply Scholarship --->
<cfinclude template="views/whyIApply.cfm">

<!--- Web Grants 4 Students --->
<!--- <cfinclude template="views/trackYourCalGrant.cfm"> --->

<!--- Like Us on Facebook --->
<cfinclude template="views/likeUsOnFacebook.cfm">

<!--- About Us --->
<cfinclude template="views/aboutUs.cfm">

</body>
</html>

<cfsetting showdebugoutput="false" />
